Skip to main content

📡 Set Status

The Set Status action allows you to set a response status code and optionally capture it in a variable for further processing within your Pageflows.


Configuration​

  • Status Code: Select a standard response status code, such as:
    • 200 (OK)
    • 400 (Bad Request)
    • 404 (Not Found)
    • 500 (Internal Server Error)
    • And others depending on your application context.
  • Description: Provide an optional descriptive message related to the status.
  • Assign Variable: Choose a variable to store the status code dynamically for later use or conditional logic.

Features​

  • Enables standardized response handling in Pageflowss.
  • Supports tracking and logging of status codes through variables.
  • Facilitates error handling and user feedback mechanisms.
  • Integrates easily with API responses or UI status displays.

Use Cases​

  • Return appropriate HTTP response codes in API Pageflowss.
  • Log status codes for auditing and troubleshooting.
  • Trigger different Pageflows branches based on status results.
  • Communicate success or failure states to downstream processes.

Notes​

  • Choose status codes relevant to your application's protocol or API specification.
  • Use descriptive messages to improve clarity in logs or responses.
  • Assigning the status to a variable allows dynamic Pageflows control and monitoring.

Tip: Combine Set Status with notification or error handling actions to create robust and user-friendly Pageflowss.